
bin/bash/
#attribute_analysis category_info customer_insight sales_analysis traffic_analysis

sqoop import \
--connect jdbc:mysql://node101:3306/sku_datas \
--driver com.mysql.jdbc.Driver \
--username root \
--password 123456 \
--as-textfile \
--table customer_insight \
--delete-target-dir \
--target-dir 'hdfs://node101:8020//sku_datas/customer_insight' \
--compress \
--compression-codec gzip \
--fields-terminated-by '\001' \
--num-mappers 1 \
--null-string '\\N' \
--null-non-string '\\N'